@use "design-system";

.multichain-app-header {
  $height-screen-sm-max: 100%;
  $width-screen-sm-min: 85vw;
  $width-screen-md-min: 80vw;
  $width-screen-lg-min: 62vw;

  // prevent overflow-x
  max-width: 100%;
  flex-flow: column nowrap;
  z-index: design-system.$header-z-index;
  min-height: var(--header-height);

  &__contents {
    height: var(--header-height);

    &__network-picker {
      max-width: 250px;
    }

    &__container {
      width: fit-content;
    }

    border-bottom: 1px solid var(--color-border-muted);
  }

  &__address-copy-button {
    &:not([disabled]):hover,
    &:not([disabled]):focus {
      box-shadow: none;
      background: var(--color-background-default-hover);
    }
  }

  &__lock-contents {
    flex-flow: row nowrap;
    height: var(--header-height);

    @include design-system.screen-sm-max {
      height: $height-screen-sm-max;
    }

    @include design-system.screen-sm-min {
      width: $width-screen-sm-min;
    }

    @include design-system.screen-md-min {
      width: $width-screen-md-min;
    }

    @include design-system.screen-lg-min {
      width: $width-screen-lg-min;
    }

    // always display horizontal logo on locked screen
    .app-header__metafox-logo {
      &--icon {
        display: none;
      }

      &--horizontal {
        @include design-system.screen-sm-max {
          display: block;
          width: 60px;
        }
      }
    }
  }
}

.multichain-app-header-logo {
  height: 75px;
  flex: 0 0 auto;
}

.app-header__metafox-logo {
  &--icon {
    height: 32px;

    @include design-system.screen-sm-min {
      display: none;
    }
  }

  &--horizontal {
    @include design-system.screen-sm-max {
      display: none;
    }
  }
}

.multichain-app-header-counter {
  position: absolute;
}

.networks-subtitle {
  cursor: pointer;
  border-radius: 6px;
}

.networks-subtitle:hover {
  background-color: var(--color-background-default-hover);
}

.networks-label-text {
  text-decoration: none;
}

.networks-label-text:hover {
  text-decoration: underline;
  text-decoration-style: dotted;
}
